<template>
  <div>
    <el-container style="margin: 35px 145px;" class="bannerCard case-content" >
      <el-aside width="200px" style="height: 400px;background-color: #29333c;   border-top-left-radius: 10px; border-bottom-left-radius: 10px;">

        <el-popover
          placement="left"
          title="标题"
          width="200"
          trigger="hover"
          content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
          <el-button class="elbutton" slot="reference" >前沿 / 区块链 / 人工智能</el-button>
        </el-popover>

        <el-popover
          placement="left"
          title="标题"
          width="200"
          trigger="hover"
          content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
          <el-button class="elbutton" slot="reference" >前端 / 小程序 / JS</el-button>
        </el-popover>

        <el-popover
          placement="left"
          title="标题"
          width="200"
          trigger="hover"
          content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
          <el-button class="elbutton" slot="reference" >后端 / Java / Python</el-button>
        </el-popover>

        <el-popover
          placement="left"
          title="标题"
          width="200"
          trigger="hover"
          content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
          <el-button class="elbutton" slot="reference" >移动 / Android / IOS</el-button>
        </el-popover>

        <el-popover
          placement="left"
          title="标题"
          width="200"
          trigger="hover"
          content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
          <el-button class="elbutton" slot="reference" >云计算 / 大数据 / 容器</el-button>
        </el-popover>

        <el-popover
          placement="left"
          title="标题"
          width="200"
          trigger="hover"
          content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
          <el-button class="elbutton" slot="reference" >运维 / 测试 / 数据库</el-button>
        </el-popover>

        <el-popover
          placement="left"
          title="标题"
          width="200"
          trigger="hover"
          content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
          <el-button class="elbutton" slot="reference">后端 / Java / Python</el-button>
        </el-popover>

        <el-popover
          placement="left"
          title="标题"
          width="200"
          trigger="hover"
          content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
          <el-button class="elbutton" slot="reference" >UI设计 / 3D动画 / 游戏</el-button>
        </el-popover>

      </el-aside>
      <el-container style="border-radius: 10px;">
        <el-header style="background-color: aquamarine;height: 300px;padding: 0px 0px; border-top-right-radius: 10px;">
          <el-carousel :interval="4000" height="300px"  arrow="always" style="border-top-right-radius: 10px;" >
            <el-carousel-item v-for="(srcUrl,index) in srcList" :key="index"  >
              <!--<h3>{{ item }}</h3>-->
              <img :src="srcUrl" style="width: 1000px">
            </el-carousel-item>
          </el-carousel>
        </el-header>
        <el-main style="background-color: white;height: 100px;padding: 0 0; border-bottom-right-radius: 10px;">
          <div class="minShopClass">
            <i class="i-web"></i> <br/>
            Web前端工程师<br/>
            <span>互联网时代最火爆技术</span>
          </div>
          <div class="minShopClass">
            <i class="i-java"></i> <br/>
            Java工程师
            <br/>
            <span>综合就业排名第一</span>
          </div>
          <div class="minShopClass">
            <i class="i-android"></i> <br/>
            Android工程师<br/>
            <span >移动设备市场第一</span>
          </div>
          <div class="minShopClass">
            <i class="i-php"></i> <br/>
            PHP工程师
            <br/>
            <span>世界上最好的语言</span>
          </div>

        </el-main>
      </el-container>


    </el-container>
    <div class="segment">
      <span class="el-icon-loading"  style="color: red"></span>
      {{'热 门 课 程'}}
      <span class="el-icon-loading" style="color: red"></span>
    </div>
    <el-row style="margin: 20px 145px;display: block">
      <el-col :span="8" v-for="(o, index) in 2" :key="o" :offset="index > 0 ? 2 : 0">
        <el-card :body-style="{ padding: '0px' }">
          <img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image">
          <div style="padding: 14px;">
            <span>算法编程与设计</span>
            <div class="bottom clearfix">
              <time class="time">{{ currentDate }}</time>
              <el-button type="text" class="button">操作按钮</el-button>
            </div>
          </div>
        </el-card>
      </el-col>
    </el-row>

    <div class="footer idx-minwidth">
      <div class="container">
        <div class="footer-wrap idx-width">
          <div class="footer-sns clearfix">
            <div class="l">
              <a href="javascript:void(0);" class="footer-sns-weixin" target="_blank" title="微信">
                <i class="footer-sns-weixin-expand">
                </i>
              </a>
              <p>官方公众号</p>
            </div>
            <div class="l">
              <a href="http://weibo.com/u/3306361973" class="footer-sns-weibo hide-text" target="_blank" title="新浪微博">
                新浪微博</a>
              <p>官方微博</p>
            </div>
          </div>
        </div>
        <div class="footer-link">      <!-- <a href="/about/us" target="_blank" title="关于我们">关于我们</a> -->      <!-- <a href="/index/companytrain" target="_blank" title="企业合作">企业合作</a> -->
          <a href="//b.imooc.com" target="_blank" title="企业服务">企业服务</a>
          <a href="/about/job" target="_blank" title="人才招聘">人才招聘</a>
          <a href="/about/contact" target="_blank" title="联系我们">联系我们</a>
          <a href="/about/recruit" target="_blank" title="讲师招募">讲师招募</a>
          <a href="/help" target="_blank" title="帮助中心">帮助中心</a>
          <a href="/user/feedback" target="_blank" title="意见反馈">意见反馈</a>
          <a href="http://daxue.imooc.com/" target="_blank">慕课大学</a>
          <a href="https://git.imooc.com" target="_blank">代码托管</a>
          <a href="/about/friendly" target="_blank" title="友情链接">友情链接</a>
        </div>        <div class="footer-copyright">
        <p><img draggable="false" class="moco-emoji" alt="©" src="https://www.imooc.com/static/moco/v1.0/images/face/36x36/a9.png">&nbsp;2020&nbsp;imooc.com&nbsp;&nbsp;闽ICP备 20200629号-01
          <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802030151" target="_blank" style="color:#93999F;font-size:12px;margin:0 5px !important;">
        <i class="beian">
        </i>
            XMUT公网安备20200629001号
          </a>
          <a href="/license" target="_blank" style="color:#93999F;font-size:12px;">营业执照</a>
        </p>
      </div>
      </div>
    </div>
  </div>
</template>

<script>



  export default {
    name:'App',
    data: function () {
      return {
        srcList: ['https://img.mukewang.com/5bd9895e000127ec09360316.jpg', 'https://img.mukewang.com/5bc45ce20001976409360316.jpg', 'https://img.mukewang.com/5bd6e4c60001d96f09360316.jpg'],
        currentDate: new Date(),
        showname:JSON.parse(window.sessionStorage.getItem('iflogin')), //判断登录
        loginname:window.sessionStorage.getItem('username')
      };

    },
    shopClassUrls: ['https://img1.mukewang.com/szimg/5ac2dfe100014a9005400300.jpg',
      'https://img2.mukewang.com/szimg/5bd2f92e0001930506000338.jpg', 'https://img2.mukewang.com/szimg/5bc3f1420001abf206000338.jpg',
      'https://img4.mukewang.com/szimg/59b8a486000107fb05400300.jpg'],
    props: [ 'segmentText' ],
    methods:{

    }
  }

</script>

<style scoped>
  .el-menu-demo{
    height: 75px;
    -webkit-box-shadow: 0 0 20px #d1c7e7;
    -moz-box-shadow: 0 0 20px #d1c7e7;
    box-shadow: 0 0 20px #d1c7e7;
    -o-box-shadow:0 0 20px #d1c7e7;
    /*border-radius: 100px/10px;*/
  }
  .nav{
    margin-top: 10px;
    color: #29333c;
  }
  .bannerCard{
    position: relative;
    box-shadow: 0 1px 4px #d5d7d8,0 0 40px #d5d7d8 inset;
    /*border-radius: 100px/10px;*/
    border-radius: 10px;
  }
  .case-content{
    /*border-radius: 100px/10px;*/
    border-radius: 10px;
  }
  .case-content:before ,.case-content:after{
    z-index: -1;
    content: "";
    background-color:white;
    position: absolute;
    top: 50%;
    bottom: 0;
    left: 10px;
    right: 10px;
    -webkit-box-shadow: 0 0 20px rgba(0,0,0,0.8);
    -moz-box-shadow: 0 0 20px rgba(0,0,0,0.8);
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    -o-box-shadow:0 0 20px rgba(0,0,0,0.8);
    border-radius: 100px/10px;
  }

  .elbutton{
    color: darkgrey;
    border: 0px;
    text-align: left;
  }

  .path-banner{

  }
  .minShopClass{
    margin-top: 0px;
    width: 180px;
    height: 100px;
    background-color: white;
    display: block;
    float:left;
    margin-left: 35px;
  }
  .minShopClass>span{
    font-size: 10px;
    color: #959ca2;
  }
  .minShopClass i{
    display: inline-block;
    width: 50px;
    height: 25px;
    background: url("https://www.imooc.com/static/img/index/new/path_new.png") no-repeat;
    background-size: 22px;
    margin-top: 12px;
  }
  .minShopClass .i-php{
    background-position: center -21px;
  }
  .minShopClass .i-web{
    background-position: center 1px;
  }
  .minShopClass .i-java{
    background-position: center -42px;
  }
  .minShopClass .i-android{
    background-position: center -65px;
  }
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
  .time {
    font-size: 13px;
    color: #999;
  }

  .bottom {
    margin-top: 13px;
    line-height: 12px;
  }

  .button {
    padding: 0;
    float: right;
  }

  .image {
    width: 100%;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }

  .clearfix:after {
    clear: both
  }
</style>
